#include "general.h" 
#include "mainframe.h"
#include <wx/snglinst.h>
#include "app.h"
#include "globals.h"

IMPLEMENT_APP(CApp)

CApp::CApp(void)
{
}

CApp::~CApp(void)
{
}

bool CApp::OnInit()
{
	wxInitAllImageHandlers();

	// populate operation categories
	g_operation_categories.push_back(new OperationCategory::Category1());
	g_operation_categories.push_back(new OperationCategory::Category2());
	g_operation_categories.push_back(new OperationCategory::Category3());
	g_operation_categories.push_back(new OperationCategory::Category4());
	g_operation_categories.push_back(new OperationCategory::Category5());
	g_operation_categories.push_back(new OperationCategory::Category6());
	g_operation_categories.push_back(new OperationCategory::Category7());
	g_operation_categories.push_back(new OperationCategory::Category8());


    m_pMainFrame = new CMainFrame(NULL);
	m_pMainFrame->Show(TRUE);

    SetTopWindow(m_pMainFrame);

    return TRUE;
} 
